from flask import Flask,session

app = Flask(__name__)
app.secret_key ='cfccff2783c085a3561c2fce5dc24e4020a093e6'
@app.route('/login',methods=['GET', 'POST'])
def login():
    session['msg'] = '闪现'
    return "login"


@app.route('/index',methods=['GET', 'POST'])
def index():
    session.pop("msg")
    print("msg")
    return "index"

if __name__ == '__main__':
    app.run(debug=True)